﻿/*****************************************************************//**
 * @file        FITKOCCViewAdaptorSketchCommand.h
 * @brief       Adaptor for occ sketch 2d data.( Legacy )
 *  
 * @author      ChengHaotian (yeguangbaozi@foxmail.com)
 * @date        2024-09-04
 *********************************************************************/

#ifndef __FITKOCCVIEWADAPTORSKETCHCOMMAND_H__
#define __FITKOCCVIEWADAPTORSKETCHCOMMAND_H__

#include "FITKOCCViewAdaptorBase.h"

#include "FITKOCCGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief       Graph object data adaptor for occ sketch 2d data.( Legacy )
     * @author      ChengHaotian (yeguangbaozi@foxmail.com)
     * @date        2024-09-04
     */
    class FITKOCCGRAPHADAPTORAPI FITKOCCViewAdaptorSketchCommand : public FITKOCCViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKOCCViewAdaptorSketchCommand);

    public:
        /**
         * @brief       Constructor.
         * @author      ChengHaotian (yeguangbaozi@foxmail.com)
         * @date        2024-09-04
         */
        explicit FITKOCCViewAdaptorSketchCommand() = default;

        /**
         * @brief       Destructor.
         * @author      ChengHaotian (yeguangbaozi@foxmail.com)
         * @date        2024-09-04
         */
        ~FITKOCCViewAdaptorSketchCommand() = default;

        /**
         * @brief       Execute the data exchange.[override]
         * @return      Is OK
         * @author      ChengHaotian (yeguangbaozi@foxmail.com)
         * @date        2024-09-04
         */
        bool update() override;

    };

    // Regist sketch 2d adaptor
    Register2FITKViewAdaptorFactory(GeoSketchCmdOCC, Interface::FITKAbsGeoSketch2D, FITKOCCViewAdaptorSketchCommand);
}   // namespace Exchange

#endif // __FITKOCCVIEWADAPTORSKETCHCOMMAND_H__